package pictureseditor.effects.effectsimpl;

import pictureseditor.effects.EffectMozaic;
import pictureseditor.exceptions.NullImageException;
import pictureseditor.images.Image;

/** Cet effet applique un effet de mozaic simple*/
public class EffectSimpleMozaic extends EffectMozaic {

	public EffectSimpleMozaic(Image img) {
		super(img);
	}

	@Override
	public Image apply() throws NullImageException {
		Image image = cutSquare();
		image = process(image, image, image, image);
		return image;
	}
	
	@Override
	public String toString() {
		return "[EffectSimpleMozaic]";
	}
}
